<%@page import="com.mysql.jdbc.StringUtils"%>
<%@page import="com.hhit.collaborative_learning.dao.impl.PublicDaoImplMySql"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page isELIgnored="false"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String blogId=request.getParameter("blogId");
	blogId=StringUtils.isNullOrEmpty(blogId)?"":blogId;
%>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<!-- <title>编辑文章 - 博客频道 - CSDN.NET</title> -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="Stylesheet" href="<%=basePath%>css/main.css" />
<!--new top-->
<link rel="stylesheet" href="<%=basePath%>css/index.css">
<!--new top-->

<script type="text/javascript" src="<%=basePath%>js/jquery.js"></script>
<script type="text/javascript" src="<%=basePath%>js/csdn.js"></script>
<script type="text/javascript" src="<%=basePath%>js/master.js"></script>
<script type="text/javascript">
// 	var statichost = "http://static.blog.csdn.net";
</script>

<link type='text/css' rel='Stylesheet' href='<%=basePath%>css/write.css' />
<script type='text/javascript' src='<%=basePath%>js/posteditnew.js'></script>
<script type='text/javascript'
	src='<%=basePath%>js/jquery.autocomplete.min.js'></script>
<script type='text/javascript' src='<%=basePath%>js/xheditor.js'></script>
<script type="text/javascript"
	src='<%=basePath%>js/xheditor_lang/zh-cn.js'></script>
<link type='text/css' rel='Stylesheet'
	href='<%=basePath%>css/jquery.autocomplete.css' />
</head>

<body>
	<input type="hidden"
				id="userId" value="${cookie.userId.value }" /> 
	<input type="hidden" id="basePath" value="<%=basePath%>"/>
	<input type="hidden" id="blogId" value="<%=blogId%>"/>
	<div id="wrap">

		<div class="head">
			<div style="float:right; margin-top:20px; color:Red;"></div>
		</div>

		<div class="tabs_header">
			<ul id="ul_tab" class="tabs">
				<li><a href="<%=basePath %>learning/bloglist.jsp"><span>文章管理</span></a></li>
				<li><a href="<%=basePath %>learning/manage_comment.jsp"><span>评论管理</span></a></li>
				<li><a href="<%=basePath %>learning/postedit.jsp"><span>发表文章</span></a></li>
				<li><a href="<%=basePath %>learning/draft.jsp"><span>草稿箱</span></a></li>
				<li><a href="<%=basePath %>learning/deleted.jsp"><span>回收站</span></a></li>
				<li><a href="<%=basePath %>learning/myattention.jsp"><span>我的关系</span></a></li>
				<c:if test="${cookie.cl_blogRight.value ne null}">
				<li><a href="<%=basePath %>learning/myright.jsp"><span>我的权限</span></a></li>
				</c:if>
			</ul>
		</div>
		<script type="text/javascript">
			
			setTab();
		</script>


		<div id="editType" style="display:none">0</div>
		<p class="subtit">
			文章标题<span style="color: green; margin-left: 18px; display: none">尊重原创，请保证您的文章为原创作品</span><input
				type="hidden" id="userinfo1" value="2015-04-25 14:27:08" /> <input
				type="hidden" id="userinfo2" value="" /> 
		</p>
		<div>
			<select id="selType"><option value="0">请选择</option>
				<option value="1">原创</option>
				<option value="2">转载</option>
				<option value="3">翻译</option></select> <input type="text" id="txtTitle"
				style="width:560px; height:20px; float:left;" maxlength="100" /> <span
				style="display:inline-block; padding:4px 0 0 10px;">*只有原创和翻译文章才能推荐到首页</span>
		</div>

		<p class="subtit">
			文章内容<span style="color:#ff9900;font-weight:normal;display:none;">（很抱歉，由于博客图片审核功能尚未完成，普通用户暂时关闭引用站外图片功能，请您谅解，我们会尽快开放。）</span><span
				id="autosave_note"></span>
		</p>
		<div class="section">
			<textarea id="editor" name="editor" rows="30" style="width:99.4%;"></textarea>
		</div>
		<style type="text/css">
#ol_img {
	margin: 0px 12px;
	padding: 10px;
}

#ol_img li {
	list-style-type: decimal;
}

#ol_img li a {
	margin-left: 10px;
}
</style>

		<div id="moreDiv">

			<p class="subtit">
				文章标签（添加Tag，你的内容能被更多人看到）
			</p>
			<div style="position:relative;">
				<div id="d_tag2"></div>
				<input type="text" id="txtTag2" style="width:60%; height:20px;"
					maxlength="100" />（最多添加5个标签，多个标签之间用“,”分隔）
				<div id="tag2box" style="display:none;">
				</div>
			</div>

			<!-- <p class="subtit">个人分类 [<a href="/category" target="_blank">编辑分类</a>]</p> -->
			<!-- <div> -->
			<!-- <input type="text" id="txtTag" style="width:60%; height:20px;" maxlength="100" />（多个分类之间用“,”分隔） -->
			<!-- <div><div id="tagbox"></div></div> -->
			<!-- </div> -->

			<!-- <p class="subtit" style="display:none;">文章别名（URL中使用，取代文章ID）</p> -->
			<!-- <div style="display:none;"> -->
			<!-- <input type="text" id="txtFileName" style="width:60%; height:20px;" maxlength="30" />（只能使用数字、字母、横线和下划线） -->
			<!-- </div> -->
			<p class="subtit">文章分类（到分类首页）</p>
			<div class="radioBox channel">
				<input type='radio' name='radChl' id='radChl1' value='mobile' /><label
					for='radChl1'>移动开发</label> <input type='radio' name='radChl'
					id='radChl2' value='web' /><label for='radChl2'>Web前端</label> <input
					type='radio' name='radChl' id='radChl3' value='enterprise' /><label
					for='radChl3'>架构设计</label> <input type='radio' name='radChl'
					id='radChl4' value='code' /><label for='radChl4'>编程语言</label> <input
					type='radio' name='radChl' id='radChl5' value='www' /><label
					for='radChl5'>互联网</label> <input type='radio' name='radChl'
					id='radChl6' value='database' /><label for='radChl6'>数据库</label> <input
					type='radio' name='radChl' id='radChl7' value='system' /><label
					for='radChl7'>系统运维</label> <input type='radio' name='radChl'
					id='radChl8' value='cloud' /><label for='radChl8'>云计算</label> <input
					type='radio' name='radChl' id='radChl9' value='software' /><label
					for='radChl9'>研发管理</label> <input type='radio' name='radChl'
					id='radChl10' value='other' /><label for='radChl10'>综合</label>
			</div>
			<p id="p_comment" class="subtit" style="display:none;">是否允许评论</p>
			<div id="d_comment" class="radioBox" style="display:none;">
				<input type="radio" name="radComment" id="radComment2" value="1"
					checked="checked" /><label for="radComment2">允许评论</label> <input
					type="radio" name="radComment" id="radComment1" value="0" /><label
					for="radComment1">禁止评论</label>
			</div>
			<p class="subtit"></p>
			<div id="chkHomeDiv" class="radioBox">
				<input type="checkbox" id="chkHome" value="1" /><label id="chkHome_label"
					for="chkHome" style="padding-right:0px;">发布到CSDN博客首页（<span
					id="sp_tohome_note"></span>）
				</label>
				<div class="clear"></div>
				<p id="p_desc" class="subtit" style="display:none;">
					摘要：<span class="gray"></span>
				</p>
				<div id="d_desc" style="display:none;">
					<textarea id="txtDesc" rows="6" style="width:99%;"></textarea>
				</div>
				<p style="text-indent:2em;">提示：1、推荐到首页必需是高质量、对别人有帮助的文章</p>
				<p style="text-indent:5em;">2、发布到首页后，一旦被管理员撤下，3天内将不能再发布到首页</p>
				<p style="text-indent:5em;">3、请不要发布任何推广、广告（包括招聘）、政治、低俗等方面的内容，不要把博客当作SEO工具，否则可能会影响到您的使用。</p>

			</div>
			<p class="subtit"></p>

		</div>

		<div class="btn_area_1">


			<input id="btnPublish" type="button" class="input_btn_1" value="发表文章"
				title="保存并跳转" /> <input id="btnDraft" type="button"
				class="input_btn_1" value="立即保存" title="保存文章并留在当前页" /> <input
				id="btnCancel" type="button" class="input_btn_1" value="舍弃" /> <span
				id="sp_note" class="savenote" style="display:none;"></span>
		</div>
		<div class="clear"></div>
		<p id="p_n" style="display:none;">
			提示：文章内容有<b>1</b>分钟的缓存，更改之后不会立即生效。
		</p>

		<script type="text/javascript">
// 		jsonData={articleId:'45335513',fileName:'45335513',tags:'',isDraft:'False',title:'JSP%20%e6%96%87%e4%bb%b6%e4%b8%8a%e4%bc%a0',type:'2',toHome:'False',channel:'14',tag2:'jsp%2c%e6%96%87%e4%bb%b6%e4%b8%8a%e4%bc%a0',comment:'1',point:'False',max_point:'100',tohome_max_cnt:'5',isClientUser:0,_0:'0'};
		
// 			alert("alert");
// 			var json=$("#json").val();
// 			if(json){
// 				alert(json);
// 				jsonData=eval("("+json+")");
// 				alert(jsonData.articleId);
// 			}
// 			jsonData = {
// 				articleId : '0',
// 				point : 'False',
// 				max_point : '100',
// 				tohome_max_cnt : '5',
// 				isClientUser : 0,
// 				_0 : '0'
// 			};
// 			var tags = "".split(',');
			var utag2 = "".split(',');
// 			var hostList = 'csdn.net,csdn.com,iteye.com,cmdn.net'.split(',');
		</script>

	</div>


<!-- 	<script type="text/javascript" src="<%=basePath%>js/cnick.js"></script> -->

	<!--     <script type="text/javascript"> -->
	<!--         document.write('<script type="text/javascript" src="http://c.csdnimg.cn/pubfooter/js/publib_footer.js?' + Math.floor(new Date() / 120000).toString(36) + '="></' + 'script>'); -->
	<!--     </script> -->

	<!--     <script type="text/javascript">document.write("<img src=http://counter.csdn.net/pv.aspx?id=342 border=0 width=0 height=0>");</script> -->
<!-- 	<script type="text/javascript" src="<%=basePath%>js/counter.js"></script> -->
	<!--new top-->

	<!--     <script id="csdn-toolbar-id"  btnId="header_notice_num" wrapId="note1" count="5" subCount="5" type="text/javascript" src="http://static.csdn.net/public/common/toolbar/js/toolbar.js"></script> -->
	<!--new top-->




</body>
</html>
